package cn.exrick.xboot.base.entity

import cn.exrick.xboot.core.base.XbootBaseEntity
import cn.exrick.xboot.core.base.XbootBaseEntityKt
import cn.exrick.xboot.core.common.utils.SnowFlakeUtil
import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableName
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import lombok.Data
import org.hibernate.annotations.DynamicInsert
import org.hibernate.annotations.DynamicUpdate
import java.math.BigDecimal
import java.util.*
import javax.persistence.Entity
import javax.persistence.Id
import javax.persistence.Table

/**
 * @author Fei
 */
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "en_enterprise_employee_record")
@TableName("en_enterprise_employee_record")
@ApiModel(value = "企业员工考试记录")
data class EnterpriseEmployeeRecord(

        @ApiModelProperty("岗位培训id", hidden = true)
        var jobTrainId: String? = null,

        @ApiModelProperty("岗位培训分支id")
        var jobTrainPartId: String? = null,

        @ApiModelProperty("考试类型 1.模拟考试 2.正式考试")
        var TestType: Int? = null,

        @ApiModelProperty("考试分数")
        var TestScore: Int? = 0,

        @ApiModelProperty("考试是否通过")
        var completeTrain: Boolean? = false

) : XbootBaseEntityKt() {

    @Id
    @TableId
    override var id: String = SnowFlakeUtil.nextId().toString()


    companion object {
        const val serialVersionUID = 1L
    }
}